# scripts/config.sh
#!/bin/bash

# ================== 用户可配置项 ==================
export NDK=/path/to/your/android-ndk              # 修改为你的 NDK 路径
export API=21
export TARGET=aarch64-linux-android
export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64

# 编译器（根据 API level 自动选择）
export CC=$TOOLCHAIN/bin/$TARGET$API-clang
export CXX=$TOOLCHAIN/bin/$TARGET$API-clang++
export STRIP=$TOOLCHAIN/bin/llvm-strip

# 架构设置
export ARCH=aarch64
export CPU=cortex-a53  # 或 generic

# FFmpeg 源码路径
export FFMPEG_SRC=$(pwd)/../ffmpeg-src

# 输出路径
export DEBUG_PREFIX=$(pwd)/../output/arm64-v8a-debug
export RELEASE_PREFIX=$(pwd)/../output/arm64-v8a-release

# 其他
export PKG_CONFIG_PATH=$DEBUG_PREFIX/lib/pkgconfig:$RELEASE_PREFIX/lib/pkgconfig